<template>
  <div class="content">
    <div class="content-block">
      <div class="content">
        <Navigation
            :navigation-list="[{id:1,value:'首页',url:'/home/Index'},{id:3,value:'政策补贴',url:''}]"></Navigation>
      </div>
      <div class="content-title">
        <div class="title">
          {{news.title}}
        </div>
        <div class="time-block">
          <span class="text">时间：{{news.crt_time}}</span>
          <!--          <span class="text px">来源：{{news.source}}</span>-->
          <!--          <span class="text px">浏览次数：{{news.lookCount}}</span>-->
        </div>
      </div>
      <div class="content-text">
        <div v-html="news.content"> </div>
        <div v-if="type==2" class="btn2 btn">立即报名</div>
      </div>
    </div>
  </div>
</template>

<script>
import Navigation from "@/components/Navigation/Navigation";
import {getNewByIdApi} from "@/api/skill";
export default {
  name: "JobCareers",
  components: { Navigation},
  data() {
    return {
      id: 1,
      type: 2,
      news: {
        newsName: "",
        time: "",
        source: "",
        lookCount: 0,
        content: ""
      }
    }
  },
  methods:{
    getNewById(){
      getNewByIdApi({id: this.id}).then((res)=>{
        this.news=res[0]
      })
    },

  },
  mounted() {
    this.utils.createParams(this,this.$route.query);
    this.getNewById();

  }
}
</script>

<style lang="scss" scoped>

.content{
  background-color: #F6F6F6;

  .content-block{
    width: $contentWidth;
    margin: 0 auto;
    margin-top: 16px;
    margin-bottom: 15px;
    min-height: 753px;
    background-color: #FFFFFF;
    .content-title{
      border-bottom:1px solid #DBDBDB;
      margin: 20px;
      padding: 30px 0 20px 0;
      .title{
        text-align: center;
        font-size: 25px;
      }
      .time-block{
        margin-top: 30px;
        display: flex;
        justify-content: center;
        .text{
          color: #adadad;
        }
        .px{
          margin-left: 30px;
        }
      }
    }
    .body-bottom{
      margin: 30px 0 0 20px;
      .body-bottom-content{
        height: 35px;
        .body-bottom-icon{
          color: #FD7628;
          font-size: 16px;

        }
        .bottom-content-title{
          margin-left: 10px;

        }
        .content-title-color{
          color: #adadad;
        }
      }

    }
    .content-title2{
      .content-title-top{
        padding: 15px 0 0 20px;
        display: flex;
        background-color: #FFFFFF;
        min-height: 60px;
        .content-title-division{
          width: 8px;
          height: 20px;
          background-color: #FB3245;
          margin-top: 5px;

        }
        .content-title-text{
          color: #FD7628;
          font-size: 20px;
          font-weight: bold;
          padding-left: 10px;
        }
      }
    }
    .content-text{
      min-height: 400px;
      margin: 15px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      .btn{
        width: 150px;
        height: 40px;
        border-radius: 5px;
        font-size: 18px;
        margin-left: 44%;
      }
    }
  }

}


</style>
